-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 7 pull requests #110585
Rollup of 7 pull requests #110585
Conversation
* environment * nonexistent * potential * prefixes * stabilization * suffixes * use Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Adds support for LoongArch.
Negating a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement `Neg` for `NonZeroI{N}`. The new `impl` is marked as stable because trait implementations for two stable types can't be marked unstable.
Implement `Neg` for signed non-zero integers. Negating a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement `Neg` for `NonZeroI{N}`. The new `impl` is marked as stable because trait impls for two stable types can't be marked unstable. See discussion on rust-lang/libs-team#105 for additional context.
…acrum Spelling misc These two files seem to be fairly distinct from everything else. That said, if this project doesn't like changing changelogs, I'm happy to drop the changes to `RELEASES.md`
cmp doc examples improvements Most changes are for stylistic consistency, with some changes to provide more clarity.
…x-raw-sys, r=Mark-Simulacrum bootstrap: Update linux-raw-sys to 0.3.2 Adds support for LoongArch.
Make `impl Debug for Span` not panic on not having session globals. I hit the panic that this patch avoids while messing with the early lints in `rustc_session::config::build_session_options()`. The rest of that project is not finished, but this seemed like a self-contained improvement. (Should changes like this add tests? I don't see similar unit tests.)
…_unsafe_op_in_unsafe_fn, r=Nilstrieb `deny(unsafe_op_in_unsafe_fn)` in `rustc_data_structures` r? `@Nilstrieb` I couldn't bring myself to document the safety in big `unsafe` functions but ehh
…compiler-errors fix lint regression in `non_upper_case_globals` Fixes rust-lang#110573 The issue also exists for inherent associated types (where I copied my impl from). `EarlyContext` is more involved to fix in this way, so I'll leave it be for now (note it's unstable so that's not urgent). r? `@compiler-errors`
@bors r+ rollup=never p=7 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR: previous master: 23a76a8ab5 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (13fc33e): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
Successful merges:
Neg
for signed non-zero integers. #102341 (ImplementNeg
for signed non-zero integers.)impl Debug for Span
not panic on not having session globals. #110548 (Makeimpl Debug for Span
not panic on not having session globals.)deny(unsafe_op_in_unsafe_fn)
inrustc_data_structures
#110554 (deny(unsafe_op_in_unsafe_fn)
inrustc_data_structures
)non_upper_case_globals
#110575 (fix lint regression innon_upper_case_globals
)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup